<template>
  <el-container>
    <el-aside :width="$store.state.menuCollapse ? '65px' : '200px'"><aside-menu></aside-menu></el-aside>
    <el-container>
      <el-header><top-header></top-header></el-header>
      <el-main>
        <keep-alive>
            <router-view v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {}
</script>

<style scoped>
.el-container {
  height: 100%;
}

.el-header {
  background-color: #333;
  color: #fff;
  text-align: center;
}

.el-aside {
  background-color: #394a55;
  color: #333;
  height: 100%;
}

.el-main {
  background-color: #e9eef3;
}
</style>
